package com.liuyucheng.generic.reflect;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class Person {
    private String name;

    public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
        Class<Person> clazz = Person.class;
        Constructor<Person> constructor = clazz.getConstructor();
        Person person = constructor.newInstance();
        System.out.println("person = " + person);
    }
}
